home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
4_10.lha
/
4_10
/
makefile
< prev
Wrap
Makefile
|
1993-08-08
|
1KB
|
38 lines
FLAGS = -g +i
C= CC -I. -I../../CC
ll: 4_10b 4_10c
_10b: main.o 4_10d.o 4_10a1.o
$(CC) -g main.o 4_10d.o 4_10a1.o -o 4_10b
_10c: main.o 4_10c.o 4_10a1.o 4_10d.o
$(CC) -g main.o 4_10c.o 4_10a1.o -o 4_10c
_10d.o: 4_10b.c 4_10b0.c
$(CC) $(CFLAGS) -c -DVER1 4_10b.c
mv 4_10b.o 4_10d.o
_10c.o: 4_10b.c 4_10c.c
$(CC) $(CFLAGS) -c -DVER2 4_10b.c
mv 4_10b.o 4_10c.o
UT= 4_10b1.out 4_10b2.out 4_10b3.out 4_10c1.out 4_10c2.out 4_10c3.out
MP= 4_10b1.cmp 4_10b2.cmp 4_10b3.cmp 4_10c1.cmp 4_10c2.cmp 4_10c3.cmp
_10b1.out: 4_10b inp1 ; 4_10b < inp1 > 4_10b1.out
_10b2.out: 4_10b inp2 ; 4_10b < inp2 > 4_10b2.out
_10b3.out: 4_10b inp3 ; 4_10b < inp3 > 4_10b3.out
_10c1.out: 4_10c inp1 ; 4_10c < inp1 > 4_10c1.out
_10c2.out: 4_10c inp2 ; 4_10c < inp2 > 4_10c2.out
_10c3.out: 4_10c inp3 ; 4_10c < inp3 > 4_10c3.out
est: all $(OUT) $(CMP)
cmp 4_10b1.out 4_10b1.cmp
cmp 4_10b2.out 4_10b2.cmp
cmp 4_10b3.out 4_10b3.cmp
cmp 4_10c1.out 4_10c1.cmp
cmp 4_10c2.out 4_10c2.cmp
cmp 4_10c3.out 4_10c3.cmp
echo tests done